package com.wxtt.android.animation;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;

/**
 * 说明：Fill
 * <p/>
 * 作者：fanly
 * <p/>
 * 时间：2016/1/1 23:18
 * <p/>
 * 版本：verson 1.0
 */
public class Fill extends BaseEffects{
    @Override
    protected void setupAnimation(View view) {
        getAnimatorSet().playTogether(
                ObjectAnimator.ofFloat(view, "scaleX", 0, 0.5f, 1).setDuration(mDuration),
                ObjectAnimator.ofFloat(view,"scaleY",0,0.5f,1).setDuration(mDuration),
                ObjectAnimator.ofFloat(view, "alpha", 0, 1).setDuration(mDuration*3/2)
        );
    }
}
